package com.limespot.api.misc;

import java.util.HashSet;
import java.util.Set;

import junit.framework.TestCase;

abstract class SetUtilsTestSupport extends TestCase {
	
	final static Set<Integer> S 		= java.util.Collections.emptySet();
	final static Set<Integer> S1 		= s(1);
	final static Set<Integer> S2 		= s(2);
	final static Set<Integer> S12 	= s(1,2);
	
	protected final static Set<Integer> s(Integer... ts) {
		return new C<Integer>().set(ts);
	}
	
	private static class C<T> {
		public Set<T> set(T... ts) {
			Set<T> res = new HashSet<T>();
			for (T t : ts) res.add(t);
			return res;
		}
	}
}
